<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--头部导航--->
<!--header start-->
<nav class="header white-bg" th:fragment="top">
    <div class="sidebar-toggle-box">
        <div data-original-title="导航栏" data-placement="right" class="icon-reorder tooltips"></div>
    </div>
    <!--logo start-->
    <a href="#" class="logo">校园电动车<span>管理系统</span></a>
    <!--logo end-->
    <div class="top-nav ">
        <!--search & user info start-->
        <ul class="nav pull-right top-menu">
            <!-- user login dropdown start-->
            <li class="dropdown">
                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                  <span class="username" id="mystatus"
                        th:text="${session.user eq null or session.user eq ''?'请先登录':session.user.username}"></span>
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu extended logout">
                    <div class="log-arrow-up"></div>
                    <li><a href="findAllMyPublicize.do"><i class=" icon-bullhorn"></i>我的公告</a></li>

                    <li><a href="logout.do"><i class="icon-key"></i> 退出登录</a></li>
                </ul>
            </li>
            <!-- user login dropdown end -->
        </ul>
        <!--user info end-->
    </div>
</nav>
<!--header end-->

</body>
</html>